﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000389 RID: 905
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DCOEJEOFDON : IMessage<DCOEJEOFDON>, IMessage, IEquatable<DCOEJEOFDON>, IDeepCloneable<DCOEJEOFDON>, IBufferMessage
	{
		// Token: 0x17000BAC RID: 2988
		// (get) Token: 0x06002898 RID: 10392 RVA: 0x00070F91 File Offset: 0x0006F191
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DCOEJEOFDON> Parser
		{
			get
			{
				return DCOEJEOFDON._parser;
			}
		}

		// Token: 0x17000BAD RID: 2989
		// (get) Token: 0x06002899 RID: 10393 RVA: 0x00070F98 File Offset: 0x0006F198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DCOEJEOFDONReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000BAE RID: 2990
		// (get) Token: 0x0600289A RID: 10394 RVA: 0x00070FAA File Offset: 0x0006F1AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DCOEJEOFDON.Descriptor;
			}
		}

		// Token: 0x0600289B RID: 10395 RVA: 0x00070FB1 File Offset: 0x0006F1B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DCOEJEOFDON()
		{
		}

		// Token: 0x0600289C RID: 10396 RVA: 0x00070FB9 File Offset: 0x0006F1B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DCOEJEOFDON(DCOEJEOFDON other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600289D RID: 10397 RVA: 0x00070FEA File Offset: 0x0006F1EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DCOEJEOFDON Clone()
		{
			return new DCOEJEOFDON(this);
		}

		// Token: 0x17000BAF RID: 2991
		// (get) Token: 0x0600289E RID: 10398 RVA: 0x00070FF2 File Offset: 0x0006F1F2
		// (set) Token: 0x0600289F RID: 10399 RVA: 0x00070FFA File Offset: 0x0006F1FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17000BB0 RID: 2992
		// (get) Token: 0x060028A0 RID: 10400 RVA: 0x00071003 File Offset: 0x0006F203
		// (set) Token: 0x060028A1 RID: 10401 RVA: 0x0007100B File Offset: 0x0006F20B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x060028A2 RID: 10402 RVA: 0x00071014 File Offset: 0x0006F214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DCOEJEOFDON);
		}

		// Token: 0x060028A3 RID: 10403 RVA: 0x00071022 File Offset: 0x0006F222
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DCOEJEOFDON other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060028A4 RID: 10404 RVA: 0x00071060 File Offset: 0x0006F260
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060028A5 RID: 10405 RVA: 0x000710BE File Offset: 0x0006F2BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060028A6 RID: 10406 RVA: 0x000710C6 File Offset: 0x0006F2C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060028A7 RID: 10407 RVA: 0x000710D0 File Offset: 0x0006F2D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(16);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060028A8 RID: 10408 RVA: 0x0007112C File Offset: 0x0006F32C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060028A9 RID: 10409 RVA: 0x00071184 File Offset: 0x0006F384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DCOEJEOFDON other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060028AA RID: 10410 RVA: 0x000711D4 File Offset: 0x0006F3D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060028AB RID: 10411 RVA: 0x000711E0 File Offset: 0x0006F3E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarType = (AvatarType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04001025 RID: 4133
		private static readonly MessageParser<DCOEJEOFDON> _parser = new MessageParser<DCOEJEOFDON>(() => new DCOEJEOFDON());

		// Token: 0x04001026 RID: 4134
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001027 RID: 4135
		public const int AvatarIdFieldNumber = 8;

		// Token: 0x04001028 RID: 4136
		private uint avatarId_;

		// Token: 0x04001029 RID: 4137
		public const int AvatarTypeFieldNumber = 2;

		// Token: 0x0400102A RID: 4138
		private AvatarType avatarType_;
	}
}
